<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 函数的两种声明方式
        // 1.关键字声明function
        function play() {
            console.log('无名之辈我是谁');
        }

        play();

        // 2.匿名函数声明（把函数之赋给变量）
        let eat = function (menu) {
            console.log(`今晚吃${menu}`);
        }

        eat('海底捞');

        // 箭头函数
        let run = (place) => {
                  console.log(`今晚上扛着火车去${place}`)
        }

        run('郑州');
    </script>
</body>

</html>